package com.example.service;

import com.example.dao.RootInfoMapper;
import com.example.domain.Patient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RootInfoService {

    @Autowired
    private RootInfoMapper rootInfoMapper;


    public Patient sltName(String str) {
        return rootInfoMapper.sltName(str);
    }

    public boolean loginIn(Patient patient){
        return rootInfoMapper.loginIn(patient);
    }

    public int altPwd(String pwd) {
        return rootInfoMapper.altPwd(pwd);
    }

}